/*
 * To change this template, choose Tools | Templates,
 * and open the template in the editor.
 */
package com.kedacom.demo.scriptEngine;

import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author xiaojinghai
 */
public class ListAllScriptEngine {

    private static final Logger logger = LoggerFactory.getLogger(ListAllScriptEngine.class);

    public static void main(String[] args) {
        ScriptEngineManager factory = new ScriptEngineManager();
        for (ScriptEngineFactory available : factory.getEngineFactories()) {
            logger.info(available.getEngineName());
        }
    }
}
